from django.contrib import admin
import xadmin

from autoreply.models import Index, News, Text
# Register your models here.
class IndexAdmin(object):
	list_display = ('id', 'msg_key',)
	list_filter = ('msg_key',)

class NewsAdmin(object):
	list_display = ('msg_key', 'title',)
	list_filter = list_display

class TextAdmin(object):
	list_display = ('msg_key',)
	list_filter = list_display

xadmin.site.register(Index, IndexAdmin)
xadmin.site.register(News, NewsAdmin)
xadmin.site.register(Text, TextAdmin)